package cn.intotw.pp.entity;

import cn.intotw.pp.constants.Constant;
import lombok.Data;

import java.util.Arrays;

/**
 * @author Chenxiang
 * @Description: PP基础协议帧
 * @create 2018/8/21 13:47
 */
@Data
public class PPProtocolFrame {
    private int headData= Constant.PACKET_BEGIN;
    private int contentLength;
    private byte[] content;

    @Override
    public String toString() {
        return "PPProtocolFrame{" +
                "headData=" + headData +
                ", contentLength=" + contentLength +
                ", content=" + new String(content) +
                '}';
    }
}